<?php /* Smarty version Smarty-3.1.18, created on 2015-07-07 23:21:11
         compiled from "D:\WWW\yf_qiaqia\Admin\View\Article\article.html" */ ?>
<?php /*%%SmartyHeaderCode:6185559bee67aa4ce5-08916302%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8ec9bdec5759925658fd2530193bb7aee32083c0' => 
    array (
      0 => 'D:\\WWW\\yf_qiaqia\\Admin\\View\\Article\\article.html',
      1 => 1431414105,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '6185559bee67aa4ce5-08916302',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    '_C' => 0,
    'art' => 0,
    'parent_list' => 0,
    'list' => 0,
    '_GET' => 0,
    'flag' => 0,
    'forms_list' => 0,
    'photo' => 0,
    'id' => 0,
    'action' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_559bee68273407_31279084',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_559bee68273407_31279084')) {function content_559bee68273407_31279084($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'D:\\WWW\\yf_qiaqia\\Qiaqia\\Vendor\\Smarty\\plugins\\modifier.date_format.php';
?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/hy.admin.css"/>
	</head>
	<body>
	<div class="am-g">
		 <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

		<div class="am-tabs am-margin"  data-am-tabs="{ noSwipe: 1}">
    <ul class="am-tabs-nav am-nav am-nav-tabs">
      <li class="am-active"><a hidefocus="true" href="#tab1">文章详情</a></li>
       <?php if ($_smarty_tpl->tpl_vars['_C']->value['DIGLOSSIA']==1) {?>
       <li><a hidefocus="true" href="#tab4">英文详情</a></li>
       <?php }?>
      <li class=""><a hidefocus="true" href="#tab2">高级选项</a></li>
      <li class=""><a hidefocus="true" href="#tab5">相册集</a></li>
      <li class=""><a hidefocus="true" href="#tab3">SEO 选项</a></li>
    </ul>


    <form class="am-tabs-bd am-form hy-js-form"  style="touch-action: pan-y; -webkit-user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">
      
      <div class="am-tab-panel am-fade am-active am-in" id="tab1">
          <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              文章标题
            </div>
            <div class="am-u-sm-4 am-u-end">
              <input type="text" name="title" value="<?php echo $_smarty_tpl->tpl_vars['art']->value['title'];?>
" class="am-input-sm">
            </div>
          </div>

          

          <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              内容摘要
            </div>
            <div class="am-u-sm-4 am-u-end">
               <textarea rows="3" name="summary" placeholder="不填写则自动截取内容前255字符"><?php echo $_smarty_tpl->tpl_vars['art']->value['summary'];?>
</textarea>
            </div>
          </div>

          <div class="am-g am-margin-top-sm">
            <div class="am-u-sm-2 am-text-right">
              内容详情
            </div>
            <div class="am-u-sm-10">
              <textarea class="hy-kindeditor" name="content" rows="10" placeholder=""><?php echo $_smarty_tpl->tpl_vars['art']->value['content'];?>
</textarea>
            </div>
          </div>
<div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              文章作者
            </div>
            <div class="am-u-sm-4 am-u-end">
              <input value="<?php echo $_smarty_tpl->tpl_vars['art']->value['author'];?>
" name="author" type="text" class="am-input-sm">
            </div>
          </div>
      </div>
      <div class="am-tab-panel am-fade" id="tab4">
          <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              文章标题
            </div>
            <div class="am-u-sm-4 am-u-end">
              <input type="text" name="en_title" value="<?php echo $_smarty_tpl->tpl_vars['art']->value['en_title'];?>
" class="am-input-sm">
            </div>
          </div>
          <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              内容摘要
            </div>
            <div class="am-u-sm-4 am-u-end">
               <textarea rows="3" name="en_summary" placeholder="不填写则自动截取内容前255字符"><?php echo $_smarty_tpl->tpl_vars['art']->value['en_summary'];?>
</textarea>
            </div>
          </div>

          <div class="am-g am-margin-top-sm">
            <div class="am-u-sm-2 am-text-right">
              内容详情
            </div>
            <div class="am-u-sm-10">
              <textarea class="hy-kindeditor" name="en_content" rows="10" placeholder=""><?php echo $_smarty_tpl->tpl_vars['art']->value['en_content'];?>
</textarea>
            </div>
          </div>
<div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              文章作者
            </div>
            <div class="am-u-sm-4 am-u-end">
              <input type="text" name="en_author" value="<?php echo $_smarty_tpl->tpl_vars['art']->value['en_author'];?>
" class="am-input-sm">
            </div>
          </div>
      </div>
      <div class="am-tab-panel am-fade " id="tab2">
         <div class="am-g am-margin-top">
          <div class="am-u-sm-2 am-text-right">所属类别</div>
          <div class="am-u-sm-4 am-u-end">
            <select name="cat_id">
            	<option <?php if (!$_smarty_tpl->tpl_vars['art']->value['cat_id']) {?>selected="selected"<?php }?> value="0">--- --- ---</option>
              <?php  $_smarty_tpl->tpl_vars['list'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['list']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['parent_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['list']->key => $_smarty_tpl->tpl_vars['list']->value) {
$_smarty_tpl->tpl_vars['list']->_loop = true;
?> 
               <option <?php if ($_smarty_tpl->tpl_vars['art']->value['cat_id']==$_smarty_tpl->tpl_vars['list']->value['id']) {?> selected="selected"<?php } elseif ($_smarty_tpl->tpl_vars['list']->value['id']==$_smarty_tpl->tpl_vars['_GET']->value['c']) {?>selected="selected"<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['list']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['list']->value['name'];?>
</option>
              <?php } ?>   
            </select>
          </div>
        </div>
        <div class="am-g am-margin-top">
          <div class="am-u-sm-2 am-text-right">推荐类型</div>
          <div class="am-u-sm-10">
            <div class="am-btn-group" data-am-button>
            	
              <label class="am-btn am-btn-default am-btn-xs <?php  $_smarty_tpl->tpl_vars['flag'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['flag']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['art']->value['flags']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['flag']->key => $_smarty_tpl->tpl_vars['flag']->value) {
$_smarty_tpl->tpl_vars['flag']->_loop = true;
?> <?php if ($_smarty_tpl->tpl_vars['flag']->value==0) {?>am-active<?php }?><?php } ?>">
                <input type="checkbox" name="flags" value="0" <?php  $_smarty_tpl->tpl_vars['flag'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['flag']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['art']->value['flags']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['flag']->key => $_smarty_tpl->tpl_vars['flag']->value) {
$_smarty_tpl->tpl_vars['flag']->_loop = true;
?> <?php if ($_smarty_tpl->tpl_vars['flag']->value==0) {?>checked="checked"<?php }?><?php } ?> > 热门
              </label>
              <label class="am-btn am-btn-default am-btn-xs <?php  $_smarty_tpl->tpl_vars['flag'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['flag']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['art']->value['flags']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['flag']->key => $_smarty_tpl->tpl_vars['flag']->value) {
$_smarty_tpl->tpl_vars['flag']->_loop = true;
?> <?php if ($_smarty_tpl->tpl_vars['flag']->value==1) {?>am-active<?php }?><?php } ?>">
                <input type="checkbox" name="flags" value="1"  <?php  $_smarty_tpl->tpl_vars['flag'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['flag']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['art']->value['flags']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['flag']->key => $_smarty_tpl->tpl_vars['flag']->value) {
$_smarty_tpl->tpl_vars['flag']->_loop = true;
?> <?php if ($_smarty_tpl->tpl_vars['flag']->value==1) {?>checked="checked"<?php }?><?php } ?> > 置顶
              </label>
              <label class="am-btn am-btn-default am-btn-xs <?php  $_smarty_tpl->tpl_vars['flag'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['flag']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['art']->value['flags']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['flag']->key => $_smarty_tpl->tpl_vars['flag']->value) {
$_smarty_tpl->tpl_vars['flag']->_loop = true;
?> <?php if ($_smarty_tpl->tpl_vars['flag']->value==2) {?>am-active<?php }?><?php } ?> ">
                <input type="checkbox" name="flags" value="2"  <?php  $_smarty_tpl->tpl_vars['flag'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['flag']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['art']->value['flags']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['flag']->key => $_smarty_tpl->tpl_vars['flag']->value) {
$_smarty_tpl->tpl_vars['flag']->_loop = true;
?> <?php if ($_smarty_tpl->tpl_vars['flag']->value==2) {?>checked="checked"<?php }?><?php } ?> > 推荐
              </label>
              <label class="am-btn am-btn-default am-btn-xs <?php  $_smarty_tpl->tpl_vars['flag'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['flag']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['art']->value['flags']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['flag']->key => $_smarty_tpl->tpl_vars['flag']->value) {
$_smarty_tpl->tpl_vars['flag']->_loop = true;
?> <?php if ($_smarty_tpl->tpl_vars['flag']->value==3) {?>am-active<?php }?><?php } ?>">
                <input type="checkbox" name="flags" value="3"  <?php  $_smarty_tpl->tpl_vars['flag'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['flag']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['art']->value['flags']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['flag']->key => $_smarty_tpl->tpl_vars['flag']->value) {
$_smarty_tpl->tpl_vars['flag']->_loop = true;
?> <?php if ($_smarty_tpl->tpl_vars['flag']->value==3) {?>checked="checked"<?php }?><?php } ?>> 图片
              </label>
              <label class="am-btn am-btn-default am-btn-xs <?php  $_smarty_tpl->tpl_vars['flag'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['flag']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['art']->value['flags']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['flag']->key => $_smarty_tpl->tpl_vars['flag']->value) {
$_smarty_tpl->tpl_vars['flag']->_loop = true;
?> <?php if ($_smarty_tpl->tpl_vars['flag']->value==4) {?>am-active<?php }?><?php } ?>">
                <input type="checkbox" name="flags" value="4"  <?php  $_smarty_tpl->tpl_vars['flag'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['flag']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['art']->value['flags']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['flag']->key => $_smarty_tpl->tpl_vars['flag']->value) {
$_smarty_tpl->tpl_vars['flag']->_loop = true;
?> <?php if ($_smarty_tpl->tpl_vars['flag']->value==4) {?>checked="checked"<?php }?><?php } ?> > 其他
              </label>
            </div>
          </div>
        </div>
        <div class="am-g am-margin-top">
          <div class="am-u-sm-2 am-text-right">显示状态</div>
          <div class="am-u-sm-10">
            <div class="am-btn-group" data-am-button="">
              <label class="am-btn am-btn-default am-btn-xs <?php if ($_smarty_tpl->tpl_vars['art']->value['is_show']) {?><?php if ($_smarty_tpl->tpl_vars['art']->value['is_show']==1) {?>am-active<?php } else { ?><?php }?><?php } else { ?>am-active<?php }?>  ">
                <input type="radio"  <?php if ($_smarty_tpl->tpl_vars['art']->value['is_show']) {?><?php if ($_smarty_tpl->tpl_vars['art']->value['is_show']==1) {?>checked="checked"<?php } else { ?><?php }?><?php } else { ?>checked="checked"<?php }?>  name="is_show"  value="1" id="option1"> 显示
              </label>
              <label class="am-btn am-btn-default am-btn-xs <?php if ($_smarty_tpl->tpl_vars['art']->value['is_show']) {?><?php if ($_smarty_tpl->tpl_vars['art']->value['is_show']==2) {?>am-active<?php } else { ?><?php }?><?php } else { ?><?php }?>">
                <input type="radio" <?php if ($_smarty_tpl->tpl_vars['art']->value['is_show']) {?><?php if ($_smarty_tpl->tpl_vars['art']->value['is_show']==2) {?>checked="checked"<?php } else { ?><?php }?><?php } else { ?><?php }?> name="is_show" value="2" id="option2"> 不显示
              </label>
            </div>
          </div>
        </div>

       

          <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              信息来源
            </div>
            <div class="am-u-sm-4">
              <input name="source_url" value="<?php echo $_smarty_tpl->tpl_vars['art']->value['source_url'];?>
" type="text" class="am-input-sm">
            </div>
            <div class="am-u-sm-6">选填</div>
          </div>
 <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              上传图片
            </div>
            <div class="am-u-sm-4">
              <input type="text" name="thumb" class="am-input-sm" value="<?php echo $_smarty_tpl->tpl_vars['art']->value['thumb'];?>
">
             
            </div>
            <div class="am-u-sm-1">
            	 <img id="hy-thumb" class="hy-js-cutimg" style="height: 30px;" <?php if ($_smarty_tpl->tpl_vars['art']->value['thumb']) {?>src="<?php echo $_smarty_tpl->tpl_vars['art']->value['thumb'];?>
"<?php } else { ?> src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
images/logo2.png" <?php }?>>
            	</div>
             <div class="am-u-sm-4 am-u-end">
             	<button class="am-btn am-btn-primary am-btn-xs hy-js-uploadimg" >上传</button>
          </div>
             </div>
       <div class="am-g am-margin-top">
          <div class="am-u-sm-2 am-text-right">关联表单</div>
          <div class="am-u-sm-4 am-u-end">
            <select name="form_id">
            	<option value="0">不关联表单</option>
              <?php  $_smarty_tpl->tpl_vars['list'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['list']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['forms_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['list']->key => $_smarty_tpl->tpl_vars['list']->value) {
$_smarty_tpl->tpl_vars['list']->_loop = true;
?> 
               <option <?php if ($_smarty_tpl->tpl_vars['art']->value['form_id']==$_smarty_tpl->tpl_vars['list']->value['id']) {?> selected="selected"<?php } elseif ($_smarty_tpl->tpl_vars['list']->value['id']==$_smarty_tpl->tpl_vars['_GET']->value['c']) {?>selected="selected"<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['list']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['list']->value['name'];?>
</option>
              <?php } ?>   
            </select>
          </div>
        </div>
        <div class="am-g am-margin-top">
          <div class="am-u-sm-2 am-text-right">
            发布时间
          </div>
          <div class="am-u-sm-4 am-u-end">
              <div class="am-form-group am-form-icon">
                <i class="am-icon-calendar"></i>
                <input name="created" data-am-datepicker value="<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['art']->value['created'],'%Y-%m-%d');?>
" type="text" class="am-form-field am-input-sm" placeholder="时间">
              </div>
          </div>
        </div>
      </div>
      <div class="am-tab-panel am-fade" id="tab5">
      	    <button class="am-btn am-btn-primary am-btn-xs hy-js-uploadimg2" >上传</button>
      	   <ul id="hy-img-ul">
      	   	<?php  $_smarty_tpl->tpl_vars['photo'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['photo']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['art']->value['photo']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['photo']->key => $_smarty_tpl->tpl_vars['photo']->value) {
$_smarty_tpl->tpl_vars['photo']->_loop = true;
?>
      	   	<li class="hy-img-li">
      	   		<div  class="hy-img-container am-text-right "><span data-param ="{ url:'index.php?g=admin&m=article&a=del_photo&id=<?php echo $_smarty_tpl->tpl_vars['photo']->value['id'];?>
',hide:2}" class="hy-js-del am-icon-close"></span><img data-href="index.php?g=admin&m=article&a=edit_photo&pid=<?php echo $_smarty_tpl->tpl_vars['photo']->value['id'];?>
" class="hy-js-img" title="<?php echo $_smarty_tpl->tpl_vars['photo']->value['title'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['photo']->value['title'];?>
" width="100%" src="<?php echo $_smarty_tpl->tpl_vars['photo']->value['original_pic'];?>
"/></div>
      	   	</li>
      	   	<?php } ?>
      	   </ul>
      </div>
      <div class="am-tab-panel am-fade" id="tab3">
          <div class="am-g am-margin-top-sm">
            <div class="am-u-sm-2 am-text-right">
              SEO 标题
            </div>
            <div class="am-u-sm-4 am-u-end">
              <input type="text" name="page_title" value="<?php echo $_smarty_tpl->tpl_vars['art']->value['page_title'];?>
" class="am-input-sm">
            </div>
          </div>

          <div class="am-g am-margin-top-sm">
            <div class="am-u-sm-2 am-text-right">
              SEO 关键字
            </div>
            <div class="am-u-sm-4 am-u-end">
              <input name="keywords" value="<?php echo $_smarty_tpl->tpl_vars['art']->value['keywords'];?>
" type="text" class="am-input-sm">
            </div>
          </div>

          <div class="am-g am-margin-top-sm">
            <div class="am-u-sm-2 am-text-right">
              SEO 描述
            </div>
            <div class="am-u-sm-4 am-u-end">
              <textarea name="abstract" rows="4"><?php echo $_smarty_tpl->tpl_vars['art']->value['abstract'];?>
</textarea>
            </div>
          </div>
      </div>
 <input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
" />
    </form>
    <div class="am-margin">
    <button type="button" class="am-btn am-btn-primary hy-js-submit am-btn-xs">提交保存</button>
    
  </div>
  </div>
	</div>	
	 
	  <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

	<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/editor/kindeditor.js"></script>
	<script type="text/javascript">
	    hy_uploadimg('/article',{},function(result){
	    	if(typeof(result[0])!='undefined')
	    	{
	        	$('#hy-thumb').attr('src',result[0]);
	        	$('input[name=thumb]').val(result[0]).focus();
	       }
	    })
	    hy_cutimg({},function(result){
	    	if(typeof(result)!='undefined')
	    	{
	        	$('#hy-thumb').attr('src',result);
	        	$('input[name=thumb]').val(result).focus();
	       }
	    })
	    hy_uploadimg('/photo',{ target:'.hy-js-uploadimg2'},function(result){
	    	var html='';
	    	if(typeof(result[0])!='undefined')
	    	{
	    		for(res in result)
	    		{
	    			html+='<li class="hy-img-li"><div class="hy-img-container am-text-right"><span data-param ="{ hide:2}" class="hy-js-del am-icon-close"></span><img width="100%" src="'+result[res]+'"/></div><input name=photo type="hidden" value="'+result[res]+'"/></li>'
	    		}
	        	$('#hy-img-ul').append(html);
	        	
	        	if($('input[name=thumb]').val()=='')
	        	{
	        		$('#hy-thumb').attr('src',result[0]);
	        	    $('input[name=thumb]').val(result[0]);
	        	}
	       }
	    })
	    hy_submit('index.php?g=admin&m=article&a=<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
');
		hungry.kindEditor.editor();
	</script>
	</body>
</html>
<?php }} ?>
